Attach event listeners after deviceready