Code refactoring as per comments.
Added style list for button css class.