working map placement, needs some work on event handlnig