add cookie and modify front page