restrict edit and delete for projects
add tests for javascript