output functions contains all the functions necessary for all the views