fixing app_name function
Convert to Dancer function