Template events added to core
Add UCP events and functions
Hide on click to prevent back button leftover
Prettify the JS