fixing buttons and adding rails partials