edit update func added created views for it index styled