created necessary functions, begining to work on the master menu