Uncaught reference error

Fixed form_apps closing and relieved uncaught reference error.