Added buttons functionality (JavaScript and CSS)