adding handlers to stop and start edxapp