seperated handlebar functions and data