moved admin functions to admin namespace
haml conversion