add border and basic functional