Added some hooking features to contact admin controller and cleaned up the code