defined a button class extending JButton, added panel for writing direct
messages