better templates and some js

sort button is removed from front page and added to renaming page