refactored deviceready show/hide code
typo in report function call