Run app as correct user
Add onclick handlers