fixed updatemarker and update category to get value of text inputs