added appropriate js calls to onnavigatedfrom and onnavigatedto functions + finishing reminder plugin