Update main app js to allow for admin functions.