added sidebar, corrected tick handler