render partials working
seperated function from event listners