Fixed some bugs

+ added enableSomeButtons function