move to haml and fix percent input