creating more views and adding functionality