Created views and middleware. Need to implement middleware