Added functionality and improved the skeleton of the file
Added CSS