Added functionality for cookies, started working on layout