added resize and drag functionality, small fixes added