Added some views and some JS functions