Added contest logics and UI