changed button layout
created plot class