added cases for user and admin, fixed logic
added class method to simplify index
fixed magic number and added before action
renamed hash variable to map_marker_list