Preview functionality cleanup

<3 Ruby 2.1