worked on js and created method access in views.py