Fixed the screens from not showing properlly and cleaned up the code a bit
Fixed the screens from not showing properlly and cleaned up the code a bit. also added some angular cookies