Fixed memory leak
UI changes
Started on the preview tab