Increased compatibility to API > 9

Hi,

I changed the tab bar such that it is also compatible with api 10 and higher.

Kind regards,
Pieter
Avoid white spaces