shortened some code
added html elements to update achievement
updating achievement works