using internal definition of width and height
added hoverfunctionality
removed wrong measuring of width&height