* make selectionBorder can focus on elements which are located on the edge correctly
* minor bugs fixed