Fix ui issues with markup tool

fixed several ui issues