Creating eventhandlers for adminview