Added a small preview functionality on main page