This is the main functions file, all the functions are stored here and are called on different webpages