small changes to view,database