changed post_add and added js