layout tweaks and close dbhandler