index and update functions complete. TODO: restrict update to post only. chart page. ajax pagination