Few minor fixes, mainly added GUI related helper methods.