How to store scope data