modify messages#show to not render layout if xhr
rename variables, refactor function, add form toggle logic
rename buttons