finished basic editbar

now it works just few more fixes may be needed I guess