getactivity sometimes returns null. this patch fixes it. also makes styl...

...ing changes to the buttons