Fixes #19
Refactored cookies into helper method. Made create change cookies.