got molecule detection working in main gui