added auto months
changes to logic of month open
added search func