fix js
ajax view
db queries