Fixed models and templates

#note not working pa add/delete
#no payables page pa.