finally fixed styles
added selection logic
added scedule logic