fixed bug in controller causing bad preview
styling added for test preview